package ca.llsutherland.nfl.fixture;

import java.util.List;

import ca.llsutherland.nfl.domain.Person;
import ca.llsutherland.nfl.domain.Role;
import ca.llsutherland.nfl.domain.User;


public class UserFixture {

	public static User createUser(String username, String password, Role role, List<Person> people) {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		user.setRole(role);
		user.setPeople(people);
		return user;
	}

	public static User createUserWithRegularRole(String username, String password, List<Person> people) {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		user.setRole(RoleFixture.createRegularRole());
		user.setPeople(people);
		return user;
	}

}
